Systems utilizing a high density two dimensional bar code symbology

ABSTRACT

A nonvolatile electro-optical read-only memory includes a substrate on which is printed (or otherwise inscribed) a complex symbol or &#34;label&#34; with a high density two-dimensional symbology, a variable number of component symbols or &#34;codewords&#34; per row, and a variable number of rows. Codewords in alternating rows are selected from mutually exclusive subsets of a mark pattern such as a (17,4) mark pattern. The subsets are defined in terms of particular values of a discriminator function, which is illustrated as being a function of the widths of bars and spaces in a given codeword. In the illustrated embodiment, each subset includes 929 available codewords; that, plus a two-step method of decoding scanned data, permitting significant flexibility in defining mappings of human-readable symbol sets into codewords. The memory may be used in conjunction with a scanner and a suitable control system in a number of applications, e.g., robotic operations or automated microfilm searching.

This application is a division of application Ser. No. 07/461,881, filed Jan. 5, 1990, now U.S. Pat. No. 5,304,786.

BACKGROUND OF THE INVENTION

The present invention relates to a high density, two-dimensional bar code symbol, comprising a substrate on which is printed (or otherwise inscribed) a complex symbol or "label" with a high density two-dimensional symbology, a variable number of component symbols or "code-words" per line, and a variable number of lines.

Bar Code Symbology

A bar code is typically a linear array of elements that are either printed directly on an object or on labels that are affixed to the object. As shown in FIGS. 1 and 2, bar code elements typically comprise bars and spaces, with bars of varying widths representing strings of binary ones and spaces of varying widths representing strings of binary zeros. Many bar codes are optically detectable and are read by devices such as scanning laser beams or handheld wands. Other bar codes are implemented in magnetic media. The readers and scanning systems electro-optically decode the symbol to multiple alphanumerical characters that are intended to be descriptive of the article or some characteristic thereof. Such characters are typically represented in digital form as an input to a data processing system for applications in point-of-sale processing, inventory control, and the like. Scanning systems of this general type have been disclosed, for example, in U.S. Pat. Nos. 4,251,798; 4,360,798; 4,369,361; 4,387,297; 4,409,470 and 4,460,120, all of which have been assigned to the same assignee as the instant application.

Most bar codes presently used contain only five or six letters or digits, no more than a typical vehicle license plate. In view of the relatively small amount of data contained in a typical linear bar code, the most typical applications of a bar code are to use the encoded data merely as an index to a file or data base associated with the computer system where comprehensive information is available.

As noted above, the contrasting parallel bars and spaces (referred to herein as "marks") of typical optically-detectable bar codes have varying widths. Generally, the bars and spaces can be no smaller than a specified minimum width, termed the code's "unit" (or "x dimension" or "module"). While the theoretical minimum unit size is the wavelength of the light being used to read the bar code, other practical limitations exist. Among these limitations are the desired depth of field of the reading equipment, the limitations of a given printing process, and the robustness of the printed image to be correctly read despite dust, dirt, and minor physical damage.

The bar code symbols are formed from bars or elements typically rectangular in shape with a variety of possible widths. The specific arrangement of elements defines the character represented according to a set of rules and definitions specified by the code or "symbology" used. The relative size of the bars and spaces is determined by the type of coding used, as is the actual size of the bars and spaces. The number of characters per inch represented by the bar symbol is referred to as the density of the symbol. To encode a desired sequence of characters, a collection of element arrangements are concatenated together to form the complete bar code symbol, with each character of the message being represented by its own corresponding group of elements. In some symbologies a unique "start" and "stop" character is used to indicate where the bar code begins and ends. A number of different bar code symbologies exist. These symbologies include UPS/EAN, Code 39, Code 93, Code 128, Codabar, and Interleaved 2 of 5.

Symbologies of (n,k) Type

Some bar codes are referred to as belonging to the (n,k) family defined by Savir and Laurer in "The Characteristics and Decodeability of the Universal Product Code," IBM Systems Journal, Vol. 14, No. 1, 1975. A code of the (n,k) type represents characters uniquely by a string of n bits each containing k runs of one bit (i.e., k bars) and k runs of zero bits (i.e., k spaces). An (n,k) code is decodable in both directions, i.e., by scanning it either forwards or backwards. Such bar codes are often referred to by the numbers n and k; for example, the well-known Code 93 derives its name from this (n,k) notation, i.e., n=9 and k=3. The UPC code is an example of a (7,2) code, i.e., n=7 and k=2.

Prior Two-Dimensional Bar Codes

Known two-dimensional bar codes exist that are extensions of one-dimensional bar codes, in that one-dimensional bar codes are stacked with horizontal guard bars between them to increase the density. An example of such bar codes is seen in U.S. Pat. No. 4,794,239, to Allais.

An obstacle to increasing the density of two-dimensional bar codes is the need for a certain minimum height in the vertical direction. A minimum height is needed to ensure that a human operator can keep a "scan line" (i.e., the path of a given scanning motion, such as that achieved by passing a hand-held wand across a bar code) within the area of a single bar-code row. FIG. 1 illustrates this difficulty: scan lines 10, 11, and 12 represent identical exemplar paths of, e.g., hand-held wands over the bar codes 15, 16, and 17. It will be seen that with a tall bar code 15, the scan lines 10 all stay within the confines of one bar code row, whereas with shorter bar codes 16 or 17, the scan lines 11 and 12 cross from one row to another.

Another limitation seen in some known two-dimensional bar codes is the use of fixed maps to translate from codewords to characters. The fixed maps restrict the flexibility of applications. For example, the well-known Code 49 has six fixed maps (i.e., six modes) to translate a codeword numerically or alphanumerically.

Although such two-dimensional bar codes provide some increase in the storage capacity, such codes are still used as indices for file look-up, rather than as a complete data file in itself.

Still another drawback of some known two-dimensional codes is the need for a fixed number of codewords per line (referred to here as a "row") and the limitation of a maximum number of rows. For instance, Code 49 (a bar code generally in accordance with the aforementioned Allais '239 patent) has 4 codewords per row and 8 rows maximum.

Yet another problem is the lack of flexibility in choosing a suitable security system. (The term "security" is commonly used to refer to confidence in accuracy or correctness; it is usually specified by a misdecode rate, e.g., in errors per million). Code 49, for example, provides a very high level of security while sacrificing about 30% of its codewords on average for checking errors. In some applications, however, a lesser degree of security may be an acceptable trade-off in return for a greater codeword density; the ability to vary the security would be advantageous.

SUMMARY OF THE INVENTION

The present invention provides an improved high-density two-dimensional symbology, as well as a flexible method for using the symbology to encode and decode data. The symbology may be used to create a high density, two-dimensional bar code symbol, which in turn may be used in a computer system.

Prior codes have been restricted in terms of information capacity or density. The present invention achieves storage capacity of up to 1 kilobytes of memory within an area of one to four square inches. The significance of such a memory should not be underestimated--it represents about 250 English words, about the size of a page or screen display. As an information unit, such unit is most suitable for many applications.

Summary of Label Row-Wise Organization

A two-dimensional label in accordance with the invention comprises multiple rows of codewords; that is, the term "label" is used here to mean a complex marking of specified dimensions that includes a number of codewords organized in rows. Each codeword is a mark pattern comprising a plurality of elements or marks; the marks can be of various heights, as in a bar code, or can be of a relatively small height to form a "dot code." Not just any mark pattern can constitute a codeword, however; each codeword belongs to a specific family or "set" of mark patterns that conforms to a particular descriptive rule about some characteristic of each mark pattern, e.g., a rule about the width of each mark and the total width of each mark pattern.

The codewords in any two adjacent rows are written in mutually exclusive subsets of the mark-pattern set (although in some embodiments the union of the subsets is not exhaustive of the set itself). In particular, each subset of the mark-pattern set is defined so that it includes, as valid codewords for that subset, only those mark patterns that satisfy certain discriminator-function criteria.

Such rowwise usage of alternating subsets of codewords, grouped according to discriminator-function criteria, permits quick determination whether a row has been crossed, without the need for a horizontal guard bar. That is, for a given scanned codeword in a label, determination of the discriminator function indicates whether the codeword comes from the same row as the previously-scanned codeword or from a different row (that is, whether the scan line has crossed between rows as illustrated in FIG. 1).

Detection of line-crossing permits "stitching" of partial scans of particular rows into a map (e.g., in memory) of the label. The stitching process is roughly analogous to stitching a number of pieces of colored fabric into a pre-designed quilt that displays, e.g., a picture: as each "piece" is acquired by the scanning process, it is incorporated piecewise into the appropriate point in the label.

For example, suppose that computation of the appropriate discriminator functions reveals that a scanning pass has scanned the first half of row 1 and the second half of row 2 of a label such as is shown in FIG. 3. Assume that the respective longitudes of the scanned data with respect to the ends of the label are known, e.g., through detection of start- and/or stop-codes. The knowledge that a row boundary has been crossed permits all the scanned data from the scanning pass to be incorporated into the respective proper rows of the label map at the respective proper longitudes (assuming no scanning or decoding errors); the data from the scanning pass need not be discarded merely because the data did not all come from a single desired row.

As another (greatly simplified) hypothetical example, assume that a part of one row has been scanned and that the data "123456789" are incorporated into the label map as a result. Further assume that a second scanning pass of that row is made, and that the data "6789ABCD" are decoded as a result. If the overlapping portion if any between the two scanned data "pieces"--in this case, the "6789" portion--can be determined (e.g., with string-matching techniques such as described below), then the reminder of the later-scanned data can be appropriately incorporated into the label map (in this case, the "ABCD" portion).

Consequently, the operator need not be scrupulously careful to sweep the wand over the label one row at a time; virtually any scanning pass that includes either a row's start code or a stop code, or that can somehow be determined to overlap with data already incorporated in the label map, will yield useable data (assuming no coding or decoding errors). A label in accordance with the invention thus advantageously increases the density of information by permitting height reductions in the codewords.

Summary of Organization of Codeword Subsets

As noted above, a key feature of the invention is the use of different codeword subsets in different rows, each subset satisfying certain discriminator-function criteria. In one embodiment described here for illustrative purposes, a (17,4) symbology is used. A discriminator function is used to divide the 11,400 available mark patterns in that symbology into three mark-pattern subsets of 929 codewords each.

The discriminator function may take as its inputs the various widths of the on- and off marks of a mark pattern (e.g., optically detectable bars and spaces) and may provide as an output a number from 0 to 8. Three subsets may then be selected whose discriminator function values are 0, 3, and 6, respectively, and whose mark widths meet certain other criteria. Each subset thus comprises a collection of codewords, all of whose discriminator functions are both equal to each other and readily distinguishable from those of the codewords in the other two subsets.

The availability of 929 codewords in each subset, each with a unique discriminatory-function number, permits each codeword to be used to represent a two-digit number in base 30. This capability leads to several advantages.

As shown in FIG. 5, each digit of the two-digit base-30 number can be used in an "alpha mode" or in a "mixed mode"; that is, each digit can be mapped into a 30-place alphabetic translation table or into a 30-place mixed alphanumeric translation table. In each of these 30-place tables, one or more digits are reserved for use as signals to change translation tables.

Alternatively, each two-digit number can be used in a "numeric mode" or in a "user mode"; that is, each number can be mapped into a 929-place numeric translation table or into any of up to twenty-seven 929-place user-defined translation tables. In each of these tables as well, one or more digits are reserved for use as signals to begin using a different translation table.

Summary of Two-Step Decoding Method

The decoding method of the invention advantageously makes use of the symbology organization of the invention. In the first step, when a codeword is scanned, the discriminator function of the scanned codeword is computed to determine the codeword subset of which the scanned codeword is a member. A t-sequence number based on the width of the marks comprising the codeword is also computed; that number is used as an entry point into a lookup table for the codeword subset in question. The lookup table yields a number from 0 to 928, which is parsed into a two-digit number in base 30.

In the second step, the high- and low-order digits of the base-30 number are used to determine the symbolic meaning assigned to the codeword (which may include an instruction to change translation tables).

The method of the invention thus advantageously permits the user to define multiple translation tables. In addition, the invention is not constrained by logical limits on the number of codewords per row nor on the number of rows. This gives the user freedom to lay out the symbology in areas of varying shapes.

Summary of Error Detection and Correction

A row-oriented incremental error detection capability is provided through the use of a checksum codeword for each row. After completion of low-level decoding but before performance of high-level decoding, various checksum computations are performed to test the accuracy of the scan.

In addition, a "final" checksum codeword for the label as a whole is used for additional security. The use of these checksums permits a limited degree of error recovery, since the check-sums reflect the information contents of each of the codewords in the label. That is, errors in decoding particular codewords can be corrected in some circumstances by "subtracting" the known correct codewords from the checksum, so to speak, thereby yielding the correct value for the erroneously decoded codeword.

If the test results are satisfactory, the high-level decoding step is performed.

Summary of System Implementation

Another feature of the present invention is to provide a system for reading bar code symbols or the like, including a hand-held scanning unit in a lightweight, portable housing including a symbol-detection device for generating a laser beam directed toward a symbol to be read, and for receiving reflected light from such symbol to produce electrical signals corresponding to data represented by the symbol; a data processing device for processing the data represented by the symbol having a state according to at least first and second different coding procedures; and a read-control device to actuate the symbol-detection device to initiate reading of a symbol; wherein the symbol includes at least two groups of codewords; each codeword representing at least one information-bearing character and being selected from among a set of valid mark patterns. Each mark pattern comprises a pattern of marks, each mark pattern being representative of encoded data according to one of a plurality of different coding procedures; the codewords in each group being selected from a subset for said group being defined by a specified rule for that group that differs from the rule specified for said different group; each coding procedure being a function of the state of the data processing device.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A and 1B are illustrations of a prior-art bar code symbology.

FIG. 1C is an illustration of a label in accordance with the present invention.

FIG. 2 is an illustration of the relationship between an x-sequence and a t-sequence in a codeword comprising part of a label embodying the present invention.

FIG. 3 is an exemplar layout of an illustrative high density two-dimensional symbology design in accordance with the invention.

FIG. 4 is a block-diagram illustration of the use of alternate sub-symbologies in different rows of a multi-row label in accordance with the invention.

FIG. 5 is a table showing alternate translation modes for encoding or decoding codewords.

FIG. 6 is a state-machine diagram of aspects of a method for using the table shown in FIG. 5.

FIG. 7 is a pictorial representation of a sequence of encoding a string of readable characters into scannable codewords.

FIG. 8 is a logic diagram of an illustrative circuit for computing a checksum for a row in a label embodying the invention;

FIG. 9 shows a similar circuit for computing an additional checksum for the entire label.

FIG. 10 is a schematic illustration of the layout of codewords within a label.

FIGS. 11 through 13 are logic diagrams of illustrative circuits for performing error recovery in accordance with the invention.

FIGS. 14A through 14D, FIGS. 15A through 15D, and FIGS. 16A through 16D depict tables used for decoding codewords in three different sub-symbologies. FIG. 17A-C are C-language program that may be used to generate these tables.

FIG. 18 is a block diagram of a computer system using a high density, two-dimensional bar code symbol in accordance with the invention.

FIGS. 19a, 19b, 19c, and 19d depict alternative type of laser scanning pattern that may be used in connection with the present invention;

FIG. 20 shows an alternative arrangement of a bar code symbol;

FIG. 21 shows a cross-sectional view of an implementation of a hand-held laser scanner which may be used to implement the present invention.

DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS Stitching of Partial Scans

The label of the invention proves especially useful for stitching together of partial scans. As noted above (and referring to FIG. 1), when scan lines 12 cross codeword rows in a label 17, the partial scans must be "stitched" or pieced together. For example, consider a retail store checkout counter where a sales clerk manually passes a hand-held wand over a multirow label. If the wand's travel does not run substantially parallel to the label, the scan line may pass from one row to another; parts of different rows are thus scanned, but neither row is scanned completely.

Stitching entails building a map of each row of the label (e.g. in memory); successive passes of the wand result in a greater degree of filling in the map. It can be accomplished by using known string matching algorithms, such as disclosed in D. Sankoff and J. B. Kruskal, editors, Time Warps, String Edits, and Macro-molecules: The Theory and Practice of Sequence Comparison, Addison-Wesley, Reading, Mass., 1983. One such algorithm is described below.

Partitioned Symbology

Stitching is facilitated by using different sub-symbologies in alternate rows, selected so that the scanner can make a local decision on whether a row has been crossed. Using different sub-symbologies in alternate rows allows the elimination of horizontal guard bars seen in prior-art code symbologies, thus permitting higher density of information.

The illustrative embodiment of the present invention utilizes an advantageous scheme for organizing codewords into readily distinguishable groups. The scheme makes use of the principle of coding theorem to pick only a fraction of available mark patterns as legal code words to increase decoding reliability; it can be applied to any of a number of labels.

One such label, referred to here as a "PDF417" label (for "Portable Data File 417"), is described as an illustration of this invention. PDF417 is a (17,4) label of the (n,k) type described above. Each codeword has 4 bars and 4 spaces with a total width of 17 modules.

It can be shown that this code yields a set of 11,440 different combinations of mark patterns. To increase decoding reliability, only a fraction of these available mark patterns are used as valid codewords.

Discriminator Function for Defining Subset Partition

As a first step in selecting a group of mark patterns for such use for this particular code, the 11,440 mark patterns are partitioned into nine subsets or "clusters," by calculating a discriminator function f(X) for each mark pattern X:

    f(X)=(x.sub.1 -x.sub.3 +x.sub.5 x.sub.7) mode 9

where x₁, x₃, x₅ and x₇ stand for the bars' widths, and x₂, x₄, x₆ and x₈ stand for the spaces' widths. The discriminator function f(X) above is one of possible alternative equations used to subdivide the different possible combinations into nine different subsets.

Further narrowing is performed on three of the nine subsets of mark patterns, namely the subsets in which f(X)=0, f(X)=3, and f(x)=6 (sometimes called cluster(0) cluster(3) and cluster(6), respectively). The narrowing is performed in part by defining a "t-sequence" for each mark pattern. Each element t_(k) of the t-sequence is computed according to the formula:

    t.sub.k =X.sub.k +X.sub.k+1, where k=1, . . . . , 7

The three subsets cluster(i) (where i=0, 3, 6) are narrowed by selecting mark patterns where no mark width x_(j) is more than six (where j=1, . . . , 7), and where no t_(k) is more than nine (where k=1, . . . 8, 7).

Thus, the three final subsets cluster(i) of the mark patterns X that are selected for use as code words can be summarized as follows:

    cluster(i)={X:f(X)=i, x.sub.j ≦6, t.sub.k ≦9}

where i=0, 3, 6, j=1, . . . , 8, and k=1, . . . , 7. After sorting each cluster by the t-sequence while suppressing duplicate entries, it can be shown that each cluster(i) includes at least 934 mark patterns. The closest prime number to 934 is 929; accordingly, 929 mark patterns are selected from each cluster(i) for use as codewords. (For convenience, the term "x-sequence," with respect to any given mark pattern, is defined as the number having as its digits x₁ x₂ . . . x₈.)

The t-sequence of each codeword can be used to identify that codeword, since it can be shown that each such t-sequence is unique within the three subsets cluster(i). It will be apparent that only the first six digits of the seven-digit t-sequence need be used to uniquely specify a codeword of the (17,4) type, since as illustrated in FIG. 2, the value of the final t-sequence element t₇ is completely determined by the first six elements t_(i) and the fixed total width Σx_(j) of the mark pattern. As an example, suppose that t₁ =2, t₂ =4, t₃ =6, t₄ =7, t₅ =6, and t₆ =4; the t-sequence for that codeword would be 246764.

The partition just described has the advantage that, by computing f(X) for any scanned mark pattern, the mark pattern's membership (or nonmembership) in a codeword subset can quickly be ascertained. Furthermore, since the t-sequence for each codeword is unique, computation of the t-sequence permits that value to be used in a lookup table to determine the symbolic meaning assigned to a scanned mark pattern that belongs to a codeword subset.

Other equivalent discriminator functions f(X) may be constructed and used. Preferably, such a discriminator function should partition the available mark patterns into clusters (not necessarily nine clusters) approximately uniform in size. In addition, the clusters selected for use as codewords preferably are equidistant in "error distance"; that is, the probability that a codeword from any of selected clusters A, B, C, etc., will be mistaken for a codeword from another one of those clusters should be of the same order of magnitude regardless of which of the other clusters is considered.

Generating Subsets of Codewords

An example of a computer program for generating lists of codewords for the various clusters(i) is set forth in FIGS. 17A-C. The example program is written for convenience in the well-known C programming language, although any suitable language may be used; the example program is used generally as follows:

1. The program of FIGS. 17A-C is used to generate 9 output files, referred to here as out(i), where i=0, . . . . 8. Only the output files out(0), out(3), and out(6) are used; they may be renamed as "cluster" files cluster(0), cluster(3), and cluster(6), respectively.

2. All three cluster files are conventionally sorted to remove ambiguous entries, i.e., to eliminate any mark pattern whose t-sequence is identical to the t-sequence of any other mark pattern.

3. The cluster files cluster(3) and cluster(6) are conventionally filtered to remove those entries in which any t_(k) is wider than 9.

4. In the cluster file cluster(0), those odd entries (i.e., the first entry, third entry, etc.) in which any t_(k) is wider than 6 are filtered out, as are those even entries in which any t_(k) is wider than 7. This is an arbitrary restriction designed to help make cluster(0) approximately the same size as cluster(3) and cluster(6), inasmuch as without such a restriction cluster(0) would be larger than the other two.

5. The first 929 t-sequences of each of the filtered cluster files are selected as the desired entries for the respective lookup tables.

Multirow Label Using Alternating Codeword Subsets

In the multirow label of the invention, each row uses codewords from a different subset than the rows immediately adjacent to it. This enables the scanner to recognize with a high degree of precision whether a scan line has crossed a row in the middle of a codeword, because if a row has been crossed, the codewords scanned will not yield the same f(X) as the previous row.

A row of codewords in accordance with the invention may conveniently contain unique start and stop codes in the conventional manner whose x-sequences are, e.g., 81111113 and 71121113 respectively. These start and stop codes are unique in that no other codeword in any cluster has the same t-sequence as either of them; furthermore, they are members of none of the final subsets of codewords because the required condition x_(j) ≦6 for all j=1, . . . , 8 is not true for those codes. The start code may be selected to have its widest bar away from the ensuing data codewords to reduce the possibility of intercodeword interference, as is the above start code; if desired, the stop code may be so selected as well.

The height to unit module ratio H (the ratio of the height of a codeword (or a row) to one module width) may be changed from label to label or even from row to row depending on the printing/scanner (system or channel) resolution, R, or on the need of various applications. FIG. 3 shows the first and the last rows having H approximately equal to 10, the rows in between having H approximately equal to 3, and the resolution R being approximately equal to 10 mil.

The first row of the multirow label uses cluster(0) codes, the second row cluster(3) codes, the third cluster(6) codes, the fourth cluster(0) codes, the fifth cluster(3) codes, and so on. There is no logical limit on the number of codewords per row or the total number of rows.

In the embodiment illustrated here, the first codeword in each row is dedicated for use as a row identifier and the last codeword in each row is a checksum. (The maximum number of rows is thus 929, i.e., the number of codewords in the dedicated cluster). It is of course possible to distinguish between forward scanning and backward scanning of the row by matching the start/stop codeword forwardly or backwardly.

Other Row-Wise Partitioning of Codewords

It will be apparent to those of ordinary skill having the benefit of this disclosure that the invention is not limited to the specific mark patterns, discriminator function f(X), and t-sequence described above. The foregoing method of deriving a symbology can be applied in a substantially similar manner to yield equivalent symbologies having other kinds of mark patterns.

For example, labels can be constructed from bars of varying shades of gray or even from bars of a wide range of colors, instead of from black and white marks only. In such a label, a discriminator function for dividing all possible mark patterns into mutually exclusive codeword subsets, and a t-sequence function for uniquely identifying each codeword within a subset, may be based on a readily detectable attribute of a mark such as its hue or its gray scale value as well as on the width of each mark (or in lieu of the width, or in combination with the width).

It will likewise be apparent that, broadly construed, the same principle encompasses the equivalent use of codewords of different colors (or shades of gray) in alternate rows. That is, all rows of a multi-row label could use the same subset of mark patterns as codewords, but in different colors or shades or orientations; the determination whether a row has been crossed would be made based on whether a color or shade or orientation change had occurred.

Subset Organization for Two-Step Decoding

In the illustrative, width-based embodiment described above, since each cluster(i) includes 929 codewords, each t-sequence in a cluster thus will correspond to a number from 0 to 928. The codewords in each subset can be organized according to a base 30 system in which one codeword, representing a number in base 30, is used to signify two alphanumeric characters.

Codewords can be scanned and decoded as follows. When a codeword is scanned, its t-sequence is noted. The t-sequence is then used as input to an initial, low-level decoding step; the output from the low-level decoding step is a number from 0 to 928 which in turn is used as an input to a high-level decoding step.

Initial Low-Level Decoding Step

The low-level decoding step entails looking up the t-sequence in a table for the appropriate cluster to find a corresponding value. The table may be created as described above. Referring to FIG. 14A (a lookup table for cluster(0)), for example, the t-sequence 246764 corresponds to the value 111.

The actual circuitry for the lookup tables may be conventional; it will be appreciated by those of ordinary skill that the use of a prime number of codewords in a subset, e.g., 929, advantageously facilitates the design of the circuitry.

Mode-Dependent High-Level Decoding Step

The look-up value 111 from the foregoing example can be broken down into a two-number sequence in base 30, each number being in the range 0-29 and having a high-level value V_(H) and a low-level value V_(L). The base-30 sequence is computed as follows:

    V.sub.H =x div 30; and

    V.sub.L =x mod 30.

For the t-sequence used above, 246764, yielding a look-up value of 111, the high level value is 3, and the low level value is 21, since 111=3×30+21. Each of the high and low values (i.e., 3 and 21) is then evaluated by looking it up in a suitable (arbitrary) table, such as shown in FIG. 5.

The exemplar table in FIG. 5 shows 30 decoding modes, including Alpha, Numeric, Mixed, and User modes. The various User modes are designated as the modes in FIG. 5 corresponding to columns 3 through 29 (with column 0 being Alpha mode).

In the illustrative embodiment, the Alpha mode is the default mode; therefore, the sample t-sequence 246764 ultimately translates into the two-letter sequence DV, via the lookup value 111 and the base-30 sequence 3, 21.

It will be seen that the coding arrangement depicted in FIG. 5 provides for mode switching that can be advantageously effected either within a single codeword or within a string of codewords. The technique for invoking mode switching varies depending on the current decoder mode.

Examples of High-Level Decoding

The state machine diagram in FIG. 6 illustrates a high-level decoding process in accordance with the invention for the exemplar embodiment. For convenience, a two-number sequence in base 30 is represented as "xxH xxL" or "(xxH, xxL)," where "xx" represents an arbitrary one- or two-digit number. For example, a high-level value of 18 and a low-level value of 10 is depicted herein as 18H, 10L or as (18H, 10L).

As an example, assume the decoder is currently in Alpha mode. As shown in FIG. 5, changing from Alpha mode to Mixed mode requires that either the high value or the low value of the two-digit base-30 sequence be equal to 28. If the high value is 28, then the low value is unimportant for mode switching purposes; likewise, if the low value is 28, then the high value is unimportant for mode switching purposes.

For Alpha mode, a high value of 28 signals to the decoder that a mode switch to Mixed mode (depicted in FIG. 5 as "ms" or Mixed-mode switch) must be effected; therefore, the low value of the high value/low value pair will be interpreted in the Mixed mode. A low value of 28 allows the decoder to interpret the high value of the high value/low value pair in the current mode, namely Alpha mode, and then to switch into Mixed mode. This mode switching technique allows a final value to be decoded in the current mode before switching to the next mode, therefore eliminating waste resulting from using an extra high value/low value pair to insure that a final high value is interpreted in the current mode.

With decoding being done in Alpha mode, a hypothetical value of 856 yields 28H 16L, i.e., a high value of 28 and a low value of 16 (since 856=28×30+16). The high value of 28 toggles the decoder into Mixed mode, and the low value 16, when translated according to Mixed mode protocol, yields "!" (an exclamation point).

To change from Alpha mode to User mode, a high value of 29 (depicted as "us" or User-mode switch) and any low value n within the range of 3 to 29 is required. Low values of 0, 1, or 2 result in no mode switch, a switch to Mixed mode, or a switch to Numeric mode, respectively. In contrast to switching from Alpha to Numeric or Mixed modes, a switch to a User mode cannot be done by a low value of 29; any such values are ignored.

Switching between other modes is done in a generally similar manner, as shown in FIGS. 5 and 6. Referring to those Figures, a decoder in Numeric mode can only directly switch to Alpha mode or Mixed mode. To toggle from Numeric mode to Alpha mode a non-position dependent value of 927 is required, i.e., either a high-level value or a low-level value equal to 927 will effect the mode switch. Likewise, to toggle from Numeric mode to Mixed mode a non-position dependent value of 928 is required. It will be apparent that the numbers 927 and 928 are the last two positions in the Numeric mode, and are reserved for mode-switching characters for convenience.

To change from User mode to one of the predefined modes (Alpha, Numeric or Mixed) a high value of 29 and a low value within the range 0 to 2 are required. The low value in this combination corresponds to the predefined mode into which the decoder is switching (i.e. a low value of 0 corresponds to Alpha mode, a low value of 1 corresponds to Mixed mode and a low value of 2 corresponds to Numeric mode.

For example, assume that the current mode is Alpha and that three consecutive codewords are to be decoded: 872, 345 and 99. Translating into base 30, 872 yields a high level value of 29 and a low level value of 2 (872=29×30+2). The first codeword 872 thus defines a User mode into which the decoder is switching. Referring to FIG. 5, if the decoder is in Alpha mode and a high level value of 29 and a low level value of 2 are encountered (as in the example above), the decoder changes to Numeric mode.

As another example, assume that the decoder is in Alpha mode and that the scanned codeword's lookup value is 723. In this case V_(H) =723 div 30=24, and V_(L) =723 mod 30=3. Therefore, the decoded codeword is (24H,3L). Since the current mode is Alpha, FIG. 5 yields (Y,D) as the respective values for the decoded codeword (24H,3L).

Decoding of values in the Numeric mode differs from decoding of values in Alpha mode and Mixed mode. Decoding in Numeric mode treats a two-number sequence as a number in base 926. For example, suppose that the current mode is Alpha and that the following three codewords are encountered 872, 345 and 99. A base 30 conversion of the first codeword 872 yields H=29 and L=2. This sequence signals the decoder to switch from Alpha mode to Numeric mode. Switching to the radix-926 decoding system, the second and third codewords are decoded as (345×926)+99=319569.

The User modes may be used with considerable flexibility. All or part of one or more modes may be used to represent a special user-defined code; for example, frequently-occurring words, phrases, sentences, paragraphs, etc. can be assigned to respective positions within a User mode. A given phrase, etc., can then be represented in the label as a single codeword (combined with a "us" mode-switch command if necessary). It will be apparent that a great many different words, phrases, etc., can be represented, e.g., in the coding scheme depicted in FIG. 5 as an illustration.

Encoding Method

An encoding procedure is the reverse process of the decoding procedure. For example, referring to FIG. 6, a license plate number "HUD-329" when encoded yields the following string of codewords: 230, 926, 843, 69. Each element of the original string "HUD-329" is located in FIG. 5 and translated according to proper mode protocol. The first four elements of the string are translated using Alpha mode. This results in H=7, U=20, D=3, and - (hyphen)=26.

The last three elements may be translated using Mixed mode. To switch to Mixed mode from Alpha mode a Mixed Shift (28) character is needed. The Mixed-mode translation then results in 3=3, 2=2 and 9=9. The complete string is thus 7 20 3 26 28 3 2 9.

This string is partitioned into high value/low value pairs, with resulting pairs (7,20) (3,26) (28,3) and (2,9). Each of these pairs is encoded as a codeword. To encode a high value/low value pair, the high value is multiplied by 30, and the low value is added to the result of this multiplication.

For example, the pair (7,20) is encoded by multiplying 7 times 30 and adding 20, yielding a result of 230. All four pairs are encoded in this manner; the resulting string is 230 116 843 69. The string is translated into codewords in accordance with the appropriate lookup table for the codeword subset in use. Assuming hypothetically that cluster(0) is in use, the string is expressed using the codewords corresponding respectively to t-sequences 335633 (for 230), 255663 (for 116), etc.

Checksum Computation

A checksum and error recovery scheme provides a row-oriented incremental error detection capability and high primitive decoding reliability. Within each row, a long polynomial division checksum scheme is used.

For convenience, each i-th codeword may be referred to by a corresponding index number a_(i), i.e., by the result of the low-level decoding step discussed above for that codeword. Each codeword's index number a_(i) will thus have a value from 0 to 928; each codeword is referred to sometimes for convenience by its index number.

Each row with codewords a_(n-1), a_(n-2), . . . , a₀ can be represented as a polynomial:

    a(x)=a.sub.0 +a.sub.1 x+a.sub.2 x.sup.2 . . . +a.sub.n-1 x.sup.n-1

This polynomial is referred to herein as the message polynomial, as discussed in, e.g., Shu Lin & D. J. Costello, Jr., Error Control Coding, 1983.

A row checksum b_(r0) is defined as the remainder resulting from dividing the message polynomial a(x) by a generator polynomial (see ibid.):

    g.sub.r (x)=x+926

Those of ordinary skill will recognize that 926 is the complement of 3 in a Galois Field based on 929, or GF(929).

The checksum of each row can conveniently be computed using the checksum encoding circuit shown in FIG. 8. In FIGS. 8 through 13, the circle-plus (modulo addition), circle-X (modulo multiplication), and circle-C (modulo complementation) symbols are defined over GF(929) as: ##EQU1## where x and y are any numbers from 0 to 928. It will of course be recognized that the design and construction of actual circuitry is a matter of routine implementation by those of ordinary skill. Such circuitry consequently is not further discussed here.

To perform the checksum computation, the register b_(r0) is initialized to 0. The input is a sequence of the codewords' index numbers a_(i) in a row, fed one number at a time into the input. The input fans into the output line (e.g., to a label printer) and the checksum encoding circuit simultaneously.

As the first codeword is input, the circle-plus computation is performed with the codeword's number a_(i) sequence and b_(r0) (i.e., 0) as operands. The output of that computation and the number 926 is fed to the circle-X computation; the output of that computation is complemented and stored in the b_(r0) register. After all of the codewords in a row have been processed through the checksum encoding circuit, the complement of the final value of b_(r0) is the checksum and is appended at the end of the row. The sequence of codewords for the row (e.g., as printed) is now a_(n-1), a_(n-2), . . . , a₀, 929-b_(r0).

A similar scheme is used to compute a structure checksum, one representing the entire label. For this second type of checksum, all codewords in the label as printed (including the codewords representing the checksums for each row except the last row) form the message polynomial, which may be expressed as:

    a(x)=a.sub.m,2 +a.sub.m,3 x+. . . +a.sub.m,n-1 x.sup.n-3 +b.sub.m-1,r0 x.sup.m-2 +. . . +a.sub.1,n-1 x.sup.nm-3

where the coefficients are defined as in FIG. 10, tracing backwardly from right to left and bottom to top. A different generator polynomial is used to calculate a remainder in a similar fashion as before, namely:

    g.sub.s (x)=(x+926)(x+920)

Dividing the new message polynomial by this new generator polynomial results in a remainder b(x)=b_(s0) +b_(s1) x. Complementing the coefficients of this remainder yields two parity-check codewords, which serve as a structure checksum as discussed below.

In implementation, this division is accomplished by using a division circuit such as shown in FIG. 9. The registers b_(s0) and b_(s1) are initialized as zeros. As soon as the message polynomial has entered the output and the circuit, the complements of the parity-check codewords are in the registers and are appended in the order b_(s1), b_(s0) just before the checksum of the last row. Then the checksum b_(r0) of the last row is computed and appended to the end of the last row, as shown in FIG. 10.

It will be noted that there are no user-definable codewords corresponding to the positions a_(m),1 and a_(m),0. These positions are reserved for the codewords b_(s),1 and b_(s),0 as shown in FIG. 10. Thus, in a label with m rows and n codewords per row, the total number of user definable code-words is nm-4 m-2, i.e., the number of codewords per row times the number of rows, minus four codewords for each row (a start code, a stop code, a row number, and a row checksum), and also minus the two parity-check codewords (i.e., the structure checksum).

Gross Error Detection

Gross error detection may be accomplished as follows. At the beginning of the scanning process, all entries (e.g., "slots"0 or "grid locations") of the map of the label are initialized to indicate unknown characters.

The low-level decoding step, as applied to a signal generated by any given scanning pass, will generate a sequence of one or more index numbers, one for each codewords that was scanned. Each index number may be any number from 0 to 928, depending on the t-sequence of the corresponding scanned codeword.

For each scanning pass, three arrays DA, CA, and FA are constructed (e.g., in memory in accordance with conventional techniques) to represent the codewords scanned in that pass:

A "decoding array" DA represents the index numbers that are obtained from the tables in FIGS. 14A through 16D and that correspond to the scanned codewords.

A "cluster array" CA represents the clusters or subsets to which the respective scanned codewords belong.

A "confidence array" FA represents the confidence existing in the accuracy of the decoding of the respective scanned codewords.

For example, a scanning pass and low-level decoding step may generate a decoding array DA comprising a sequence of index numbers such as (293, 321, 209, 99, 679). The corresponding sequence of clusters might be (3, 3, 0, 0, 0) indicating that the first two codewords were members of cluster(3) and the final three were members of cluster(0). This implies that the subsequence comprising the second and third codewords (represented by 321 and 209 in the array DA) bracket the point at which a row was crossed, i.e., that the two codewords are in two adjacent rows. Because such row-crossing subsequences frequently have higher error probability, they are assigned a relatively low weight in a confidence array FA. In the example above, the confidence array FA for the scanned codewords might be (3, 1, 1, 3, 3).

Now suppose that a previous scanning pass had resulted in a decoding array DA of (293, 329, 222, 999, 999) for the same sequence of codewords, where 999 represents an unknown codeword whose confidence level is zero. Further assume that the confidence array FA for that previous scanning pass is (3, 3, 1, 0, 0), because the row was crossed between the third and fourth characters on that pass instead of between the second and third characters as hypothesized in the previous paragraph.

A "voting" process may be used to compare the confidence arrays for the two scanning passes to determine which results are more likely to be correct. For example, the voting rules may be as follows:

1. If two successive scans of a given codeword result in the same index number after low-level decoding, then the corresponding confidence figures in the two confidence arrays FA are added;

2. In contrast, if two successive scans result in different numbers for the same codeword, then (a) if one of the two index numbers has a higher confidence level than the other, the higher-confidence index number "survives" and is filled into the decoding array DA, but the confidence level for the corresponding position in the confidence array FA is reduced by the confidence level for the nonsurviving index number, (b) if both index numbers have equal confidence levels, then neither index number survives; instead the unknown- codeword index number 999 is used as the "surviving" index number and the confidence is reset to zero; and

3. If the index number a_(i) for one scan of a given codeword is 999 (representing an unknown codeword) and an acceptable index number for the other scan (i.e., an index number from 0 to 928), then the acceptable index number is kept, and the confidence level of that index number remains the same.

It will of course be appreciated by those of ordinary skill that a wide variety of conventional array- and memory-management techniques may be used for creating and manipulating the arrays DA, CA, and FA. For example, the decoding array DA might be the label map itself, with a temporary array being used to hold the index numbers a_(i) for a new scan and with surviving index numbers from that scan being written into the appropriate position in the array DA (or perhaps not written if the same index number is already represented at that position). In such an example, the cluster array CA and the confidence array FA might each be "shadows" of the decoding array DA, with as many positions in each as there are in the decoding array DA.

When the decoding array DA has been filled with an acceptable index number a_(i) for all codeword positions corresponding to a particular row in the label, the representation of that row in the decoding array DA is set aside. That is, regardless of the confidence that exists about the accuracy of the contents of the decoding array DA, once the row has been decoded to indicate acceptable index numbers for each codeword, no further decoding is done for codewords in that row; additional error detection proceeds as described below.

Further Error Detection and Recovery by Checksumming

Errors may still exist in the decoding array DA for a particular row even after that row is set aside. Before performing high-level decoding, the redundant information stored in the row checksums and the label checksum can advantageously be used to detect and/or recover from errors in scanning any particular codeword by a process of elimination.

Generally speaking, if all but one or two of the codewords in the entire label are known to be correct, the correct values of the unknown codewords can be computed by "subtracting" (so to speak) the values of the known codewords from the values of the checksums, which of course reflect the values of all codewords, known and unknown.

Errors in any particular row may be detected by using a syndrome divider such as shown in FIG. 11. The register d_(r0) is initialized to zero. After the index numbers a_(i) of the scanned row are fed to the syndrome divider, the register d_(r0) indicates the detection result. If d_(r0) is equal to zero, the corresponding row was correctly scanned and its image or map in memory can be locked; otherwise, an error occurred in the scanning and decoding of the row, and the row must be rescanned. If all codewords in the label are decoded and check summed without error, then the following error recovery step can be skipped.

When the total number of still-unknown codewords is less or equal to two, an error recovery scheme as follows can be invoked. The unknown codewords first are replaced in the label map with zeros. A syndrome S_(i) is then computed for each i=1, 2. Since by hypothesis the position p_(v) of the unknown (i.e., erroneous) codewords is known, where v=1, 2, only the values of those unknown codewords need be computed. As a first step, an error value e is computed for each error position p_(v) by solving the following system of matrix equations: ##EQU2## If only one error exists, the system becomes overdetermined, that is, more information is present than is needed to solve the above matrix, which reduces to: ##EQU3##

For an assumed one-error case, if the above matrix equation system is consistent (that is, if the foregoing two matrix equations yield the same solutions), then one error does indeed exist and the solution of 3^(p1) is the error value, i.e., the correct value of the unknown codeword. Otherwise, an undiscovered second error exists in the label, and the decoding result is rejected.

After successfully solving for the error values, the complement of error values are filled into the corresponding unknown codewords' locations. Then the error detection computation is performed again for those rows containing unknown codewords. If no errors are detected, the decoding result then is taken as correct; otherwise, the decoding result is likewise rejected.

Nonvolatile Memory and Computer System

Referring to FIG. 18, a high density, two-dimensional bar code symbol 100 may be created by marking a suitable substrate (e.g., paper) with one or more labels in accordance with the foregoing description. The memory 100 may be combined with a fixed or movable scanner 110 for use as a storage device for a suitably programmed computer such as a processor 120.

For example, a robot might have an on-board computer programmed to control the robot to perform simple tasks, such as selectively moving an object 130 by means of a manipulator 140. An on-board scanner 110 might operate as the robot's "eyes" for reading labels of the kind described above. In similar fashion, a conveyor system might include a fixed scanner 130 and a moving belt that served as the manipulator 140. The label preferably contains a list of instructions for operating the robot, with the computer on-board. The robot responding to data and instructions contained on the label.

Additional Illustrative Embodiments

It will of course be recognized by those of ordinary skill (having the benefit of this disclosure) that the invention is capable of being adapted to other uses and in other embodiments than the illustrative ones disclosed above. Furthermore, the invention may be implemented in numerous specific architectures. A few examples are briefly mentioned below for illustrative purposes:

The decoder of a conventional one-dimensional scanner could be reprogrammed to perform one or more of the functions described above, e.g., by replacing a read-only memory (ROM) chip containing the programming if the scanner is so constructed;

A scanning system could be built using a suitably programmed microprocessor or other computational unit to perform one or more of the above functions. The programming could be loaded into dynamic read-write memory (RAM), or could be "burned" into read-only memory (ROM) either onboard or outboard of the microprocessor;

A scanning system could be built using a computation unit specially designed to perform the functions described above;

Parallel processing technology could be used to partition the work of decoding the various parts of a label; and so forth. The actual design and construction of any particular implementation is a matter of routine for those of ordinary skill having the benefit of this disclosure, the details of which are not further discussed here.

Referring to FIG. 18, a computer system including a high density, two-dimensional bar code symbol 100 of the type described could be used in a number of applications. As an illustration, an overnight package delivery service (e.g., Federal Express, UPS, Purolator, and the like) might have certain of its package-sorting functions automated through the use of memories 100 in the form of printed labels in accordance with the foregoing, applied to packages such as the object 130 shown in the figure. In one such possibility, package shippers would fill out a waybill 100 by responding to queries posed by a suitable computer program. The program's printed output (e.g., on a laser printer or dot matrix printer) might include both a human-readable destination address and a label 100 as described above in which that information was encoded in scannable form. The shipper would affix the printed waybill 100 to the object 130 being shipped. (Other information such as the shipper's telephone number and the like could likewise be so encoded.) One of the key advantages of the high data capacity memory 100 of the present invention is that it may be created at the warehouse or loading dock by an inexpensive printer so that updated or corrected information may be applied at the point of shipment. The fact that the memory is merely a paper label means that it is inexpensive and disposable. Thus, the present invention may be implemented in conjunction with a portable terminal and thermal printer to create and print a label, even in a remote location. Such a portable terminal, connected to scanner, allows the user to scan, print, and apply the label to the article quickly and inexpensively. At various points during shipment, suitable robots could read the label 100 and, using manipulators 140, direct the object 130 appropriately; e.g., a scanner 110 could read the memory 100 to generate a signal; based on the content of that signal, a manipulator 140 controlled by a processor 120 could move the object 140 as appropriate.

A similar arrangement could be used in a warehouse inventory control system. A label of the type described could be printed or otherwise applied to or inscribed on one or more sides of a shipping carton or directly to merchandise. The label might have encoded therein as much information as desired about the specific item, e.g., its type, color, dimensions, weight, point of manufacture, lot number, and so forth. A suitable robot could be used as an order-filling machine by moving within the warehouse and, using its scanner, searching for merchandise whose label indicates that it matches a specified order. (Searching could of course be in accordance with techniques now known or hereafter developed.) It will be apparent that this arrangement would permit information about specific merchandise items to be stored locally at the merchandise itself.

Such local storage could advantageously take the place of a separate file of information about the item, e.g., stored in a computer data base and keyed to a bar-code serial number on the item. Local storage would reduce the problem of dealing with "orphan" merchandise whose serial numbers were not known to the computer data base. In addition, it would permit rapid in-processing of newly-received merchandise shipments, in that complete information about the new merchandise could be scanned into the warehouse's information system, obviating the need for the shipper to generate and transmit a separate information file (e.g., on a computer tape or by hard copy) about the specific items being shipped. This would similarly be advantageous in, e.g., libraries or other organizations that regularly received shipments of books or similar objects that required cataloging.

Another feature of the present invention is to utilize the bar code according to the present invention so that it may be affixed to an article as a means of identifying that article and associating information with the article much like a "read-only memory" or identification tag implemented in so called RF ID systems. One such implementation is to print a variety of different bar code symbols which are available in easily disposable and affixable format so that information may be easily and quickly affixed to the article. One example of an application is in connection with the repair and service of equipment. The use of a service record is useful for quality control and documentation purpose, but it is often impractical to store detailed written records with the equipment. The use of a high density, encoded services report affixed to the equipment in the form of a two-dimensional bar code is especially advantageous. The service technician may select the appropriate PDF label from a set of labels corresponding to repairs performed, and attach the label to the repaired equipment. If the equipment is returned for subsequent repairs, the service technician has the complete service history attached to the equipment in only a few square inches.

As another example, a high density, two-dimensional bar code symbol and scanner system could be used for enhanced searching of microfilm rolls or microfiche sheets. Assume that a large body of text and/or graphical information is stored photographically on a roll of microfilm. An example of such information might be the thousands of documents--printed, typed, handwritten, drawn, or a combination thereof--that can be involved in a large litigation. Known computerized litigation support systems permit paralegals to summarize each document page in a data base; for each document page, selected information from the data base could be inscribed as a label in accordance with the foregoing on the corresponding frame of microfilm, in a corner or other appropriate location.

A microfilm reader could be equipped with (a) input means such as a keyboard by which a user could specify search criteria (e.g., in Boolean logic); (b) a fixed scanner to read microfilm labels as the microfilm was scrolled; and (c) control means to determine whether a given microfilm frame satisfied the specified search criteria. The user would then be able to view documents conveniently. In the case of multiple-reel document collections, a master index or indexes could be encoded on a separate reel; output means such as a CRT or an LCD or LED display could be used to instruct the user as to which reel to mount to locate the specific document desired.

For example, a microfilm reader with a scanner might be designed to be coupled to and controlled by a conventional desktop, laptop, or notebook computer in a conventional manner as a peripheral device (or the essentials of such a computer could be built into the reader). The computer would not need to have the entire document-summary data base available on disk storage, since the microfilm itself would contain the necessary information; it would suffice if the computer was programmed (e.g., in ROM) to perform the desired search functions using the label-encoded data from the microfilm.

Still another feature of the present invention is to provide a method for processing information by optically scanning indicia on the surface of a substrate, the indicia including a plurality of codewords scanned sequentially and organized into at least two independent scanning paths, each codeword being either an information codeword or a control codeword, and each information codeword corresponding to at least one information-containing character. A plurality of different mapping functions are provided each associating the code word with one character out of a set of different characters, with only one mapping function being active at any given time. Each codeword in any one scanning path is distinct from any codeword in an adjacent scanning path. Using such a codeword data structure, the method includes the steps of: determining whether a scanned codeword is an information codeword or a control codeword; decoding the codeword according to the mapping function if said codeword is an information codeword; and processing the codeword if the codeword is a control codeword. If the codeword is a control codeword, it identifies a new mapping function, and processing of subsequently scanned codewords take place using the new mapping function.

As an example of the different scanning paths that may be used, and a different organization of the codewords, reference is made to FIGS. 19 and 20.

FIG. 19a, 19b, 19c, and 19d is an alternative type of laser scanning pattern that may be used in connection with the present invention.

The present invention may be implemented in a hand-held, laser-scanning, bar code reader until such as illustrated in FIG. 21. This hand-held device of FIG. 21 is generally of the style disclosed in U.S. Pat. No. 4,760,248, issued to Swartz et al., assigned to Symbol Technologies, Inc., and also similar to the configuration of a bar code reader commercially available as pan number LS 8100II from Symbol Technologies, Inc. Alternatively, or in addition, features of U.S. Pat. No. 4,387,297 issued to Swartz et al., or U.S. Pat. No. 4,409,470 issued to Shepard et al., both such patents assigned to Symbol Technologies, Inc., may be employed in constructing the bar code reader unit of FIG. 21. These U.S. Pat. Nos. 4,760,248, 4,387,297 and 4,409,470 are incorporated herein by reference. An outgoing light beam 151 is generated in the reader 100, usually by a laser diode or the like, and directed to impinge upon a bar code symbol a few inches from the front of the reader unit. The outgoing beam 151 is scanned in a fixed linear pattern, or more complex pattern such as shown in FIG. 19 may be employed and the user positions the hand-held unit so this scan pattern traverses the symbol to be read. The use of a central dark portion, such as in FIG. 19d, may be used for aiming, or other visual techniques associated with alignment. Reflected light 152 from the symbol is detected by a light-responsive device 146 in the reader unit, producing serial electrical signals to be processed for identifying the bar code. The reader unit 100 is a gun shaped device, having a pistol-grip type of handle 153 and movable trigger 154 is employed to allow the user to activate the light beam 151 and detector circuitry when pointed at the symbol to be read, thereby saving battery life if the unit is self-powered. A light-weight plastic housing 155 contains the laser light source, the detector 146, the optics and signal processing circuitry, and the CPU 140 as well as a battery 162. A light-transmissive window 156 in the front end of the housing 155 allows the outgoing light beam 151 to exit and the incoming reflected light 152 to enter. The reader 100 is designed to be aimed at a bar code symbol by the user from a position where the reader 100 is spaced from the symbol, i.e., not touching the symbol or moving cross the symbol. Typically, this type of hand-held bar code reader is specified to operate in the range of perhaps several inches.

As seen in FIG. 21, a suitable lens 157 (or multiple lens system) is used to collimate and focus the scanned beam into the bar code symbol at an appropriate reference plane, and this same lens 157 may be used to focus the reflected light 152. A light source 158 such as a semiconductor laser diode is positioned to introduce a light beam into the axis of the lens 157 by a partially-silvered minor and other lenses or beam-shaping structure as needed, along with an oscillating mirror 159 which is attached to a scanning motor 160 activated when the trigger 154 is pulled. If the light produced by the source 158 is not visible, an aiming light may be included in the optical system, again employing a partially-silvered mirror to introduce the beam into the light path coaxially with the lens 157. The aiming light, if needed, produces a visible-light spot which is scanned just like the laser beam; the user employs this visible light to aim the reader unit at the symbol before pulling the trigger 154.

In real applications, either the length of bar code should be fixed, or an additional character should be placed in the bar code to indicate its length. If not, misdecodings may occur.

If the length of the bar code is fixed, the performance of decoding using stitching might be better than that of decoding using a complete scan, because the reject rate and the misdecode rate is less in most good quality bar codes (in cases where the quality of the bar code is very poor, the misdecode rate may be greater, but never greater than 2K times, where K is the number of the scans used for stitching).

Although the present invention has been described with respect to multiple line bar codes, it is not limited to such embodiments. It is conceivable that the method of the present invention may also find application for use with various machine vision or optical character recognition applications in which information is derived from other types of indicia such as characters or from the surface characteristics of the article being scanned.

In all of the various embodiments, the elements of the scanner may be assembled into a very compact package that allows the scanner to be fabricated as a single printed circuit board or integral module. Such a module can interchangeably be used as the laser scanning element for a variety of different types of data acquisition systems. For example, the module may be alternately used in a hand-held scanner, a table top scanner attached to a flexible arm or mounting extending over the surface of the table or attached to the underside of the table top, or mounted as a subcomponent or subassembly of a more sophisticated data acquisition system.

The module would advantageously comprise a laser/optics subassembly mounted on a support, a scanning element such as a rotating or reciprocating mirror, and a photodetector component. Control or data lines associated with such components may be connected to an electrical connector mounted on the edge or external surface of the module to enable the module to be electrically connected to a mating connector associated with other elements of data acquisition system.

An individual module may have specific scanning or decoding characteristics associated with it, e.g. operability at a certain working distance, or operability with a specific symbology or printing density. The characteristics may also be defined through the manual setting of control switches associated with the module. The user may also adapt the data acquisition system to scan different types of articles or the system may be adapted for different applications by interchanging modules on the data acquisition system through the use of the simple electrical connector.

The following claims are intended to encompass all such uses, implementations, and embodiments. 

What is claimed is:
 1. An electro-optical computer having a memory comprising:(a) a machine-readable label holding a data file structure made up of a plurality of marks having one of two different states, said data file structure including(i) a plurality of codewords selected from a set of patterns of said marks, wherein each of said codewords represents at least one information-bearing character, and (ii) at least two rows of said codewords, wherein the codewords in one of said rows are members of a first subset of said set of mark patterns, and the codewords in a second one of the rows are members of a second subset of said set of mark patterns, the first subset of said set of mark patterns being distinguishable from the second subset of said set of mark patterns; (b) a system for reading the label and generating a signal representative of the codewords in said rows, said system being capable of concurrently reading a portion of the codewords from each of the two rows by distinguishing the first and second subsets; and (c) processing means, responsive to said signal, for processing the information-bearing characters in the codewords in said memory.
 2. The electro-optical computer of claim 1, wherein each of said codewords is selected from a subset of acceptable mark patterns such that each of the subsets includes only codewords X whose marks have widths smaller than a specified upper boundary, whose x-sequence functions f(x)=(x₁ -x₃ +x₅ -x₇) mod 9 equals 0, 3, or 6, and whose t-sequences t_(i) =x_(i) +x_(i+1) are less than 9, where x_(i) represents the width of the ith mark of the codeword.
 3. The electro-optical computer of claim 1, wherein the scanning system includes:a light source for sending a light beam to impinge on the label; a lens for focusing the light beam from the light source onto the label; and a detector for receiving the light beam after it reflects from the label.
 4. The electro-optical computer of claim 3, wherein the lens also includesmeans for focusing the light beam onto the detector after it has been reflected.
 5. The electro-optical computer of claim 1, wherein each of said mark patterns in said set of mark patterns has a determinable discriminator function, andwherein the processor means includes:means for computing a discriminator function for each read codeword; means for determining, from the computed discriminator function, an indication of the row containing that codeword; means for decoding the read codeword to obtain a corresponding information-bearing character; and means for generating a signal representative of the presence of said corresponding information-bearing character in the determined row.
 6. The electro-optical computer of claim 1, wherein the processing means includes:first means for computing, from the read codeword, a t-sequence of N-1 digits whose ith digit is t_(i), where N is the number of marks in the read mark pattern; second means for computing the x-sequence of the read codeword; and validating means, coupled to the first and second computing means, for indicating whether the read codeword is valid.
 7. The electro-optical computer of claim 6, wherein the processing means includes:means for obtaining an index number that uniquely corresponds to the computed t-sequence from the first computing means; means for converting the index number into a two-digit number in base 30, said number having a first value and a second value, the first value being greater than the second value; first means for determining, for each of the first and second values, which of a plurality of decoding modes is a currently active decoding mode; and second means for determining, for each of the first and second values, a symbol character associated with the first value or the second value.
 8. The electro-optical computer of claim 1, wherein the processing means includesmeans for determining whether a read codeword lies in one said row or in an adjacent row; and means for computing a unique index number for the read codeword as a function of a detectable characteristic of the read codeword.
 9. A robotic system for moving an object that includes a machine-readable label containing a data file structure made up of a plurality of marks having one of two different states, said file structure includinga plurality of codewords selected from a set of patterns of said marks, wherein each of said codewords represents at least one information-bearing character, and at least two rows of said codewords, wherein the codewords in one of said rows are members of a first subset of said set of mark patterns, and the codewords in a second one of said rows are members of a second subset of said set of mark patterns, the first subset of said set of mark patterns being distinguishable from the second subset of said set of mark patterns,the robotic system comprising: (a) a system for generating a signal representative of the codewords in a memory, said system being capable of concurrently reading a portion of the codewords from each of the two rows by distinguishing the first and second subsets; (b) processing means, responsive to said signal, for processing the information-bearing characters in the codewords in said memory and generating control signals from the information-bearing characters; and (c) a manipulator, coupled to the processing means, for taking certain actions in response to the control signals from the processing means.
 10. The robotic system of claim 9, wherein each of said codewords is selected from a subject of acceptable mark patterns such that each of the subsets includes only codewords X whose marks have widths smaller than a specified upper boundary, whose x-sequence functions f(x)=(x₁ -x₃ +x₅ -x₇) mod 9 equals 0, 3, or 6, and whose t-sequences t_(i) =x_(i) +x_(i+1) are less than 9, where x_(i) represents the width of the ith mark of the codeword.
 11. The robotic system of claim 9, wherein the codewords collectively represent information about an item attached to the label; andwherein the processing means includes means for determining from the information-bearing characters at least one action to take on said item.
 12. The robotic system of claim 9, wherein the label is a waybill.
 13. A hand-held reader for reading codewords comprising:a housing including a transparent portion; a beam generator located in the housing for generating a light beam to be directed onto each of the codewords through the transparent portion; a light sensitive device, responsive to the beam generator, for detecting light reflected from the codewords and converting the detected light into corresponding electrical signals; a signal control unit, responsive to the light sensitive device, for processing the electrical signals to identify the codewords; and a data file structure used for reading the codewords including:at least two rows of the codewords, one row adjacent to and beneath another row; each of said codewords representing at least one information-bearing character and being selected from among a set of detectable mark patterns; each said mark pattern comprising a pattern of marks, each said mark being representative of one of a plurality of different states; the codewords in each row being selected from a subset of said mark patterns, the subset for said row being defined by a specified rule for that row that differs from the rule specified for said adjacent row to allow portions of the codewords from each of the two rows to be read concurrently; and each said rule being a function of a detectable characteristic of the respective said marks.
 14. A hand-held bar code reader according to claim 13, further comprising a lens system to direct the light beam onto the codewords.
 15. A hand-held bar code reader according to claim 13, further comprising an oscillating reflector and a motor coupled to the reflector for controlling the light beam to read the codewords.
 16. A hand-held bar code reader according to claim 15, further comprising a trigger for activating at least one of the beam generator and the motor.
 17. A hand-held bar code reader according to claim 13, wherein the signal control unit includes a central processing unit. 